package cn.itcast.dao.company;

import cn.itcast.domain.company.Company;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;


@Component
public interface CompanyDao {


    //查询所有
    List<Company> findAll();

    //添加
    void save(Company company);

    //修改
    void update(Company company);

    //删除
    void delete(String id);

    //根据id查询
    Company findById(String id);

    //记录数
    Long findCount();
    //分页查询所有
    List<Company> findAllList(@Param("index")Integer index,@Param("pageSize")Integer pageSize);


}
